package com.ndp.fb.redis.model;

import com.ndp.fb.rdb.annotation.Column;
import com.ndp.fb.rdb.annotation.ColumnType;
import com.ndp.fb.rdb.annotation.NoSave;
import com.ndp.fb.rdb.model.BaseAdLevel;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.Date;
import java.util.List;

/**
 * Created by Administrator on 2014/12/24.
 */
@Setter
@Getter
@NoArgsConstructor
public class AdSetLevel extends BaseAdLevel {

    //ad_set_id
    private Long adSetId;
    //name
    private String name;
    //campaign_status
    private String campaignStatus;
    //daily_budget
    private Integer dailyBudget;
    //lifetime_budget
    private Integer lifetimeBudget;
    @Column("start_time_str")
    private String startTimeString;
    @Column(value = "start_time", type = ColumnType.Time)
    private Date startTime;
    @Column(value = "start_utc_time", type = ColumnType.Long)
    private Long startUTCTime;
    @Column("end_time_str")
    private String endTimeString;
    @Column(value = "end_time", type = ColumnType.Time)
    private Date endTime;
    @Column(value = "end_utc_time", type = ColumnType.Long)
    private Long endUTCTime;
    //campaign_group_id
    private Long campaignGroupId;
    //targeting
    private Object targeting;
    //promoted_object
    private Object promotedObject;                                   // promoted_object:{"product_set_id":"<PRODUCT_SET_ID>"
    @NoSave
    private List<String> adGroupBatchIndexs;
    //ad_set_key
    private String adSetKey;
    /**
     * 优化方向
     */
    //optimization_goal
    private String optimizationGoal;
    /**
     * 结算事件
     */
    //billing_event
    private String billingEvent;
    //is_autobid
    private Boolean isAutobid;
    /**
     * 出价
     */
    //bid_amount
    private Integer bidAmount;

    public void setIsAutobid(Boolean autobid) {
        isAutobid = autobid;
    }
    public void setAutobid(Boolean autobid) {
        isAutobid = autobid;
    }

}
